package org.example.design.state.test2;

/**
 * @author huangshen
 * @version 0
 * @description StopState
 * @since 2022/2/14 11:19
 */
public class StopState implements State {

    public void doAction(Context context) {
        System.out.println("执行结束State");
        context.setState(this);
    }

    @Override
    public String toString(){
        return "Stop State";
    }
}
